]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
style: Adjust the tooltip style; fix inconsistency with screenshot UI
authorSam Hewitt <sam@snwh.org>
Tue, 2 May 2023 13:31:12 +0000 (11:01 -0230)
committerSam Hewitt <sam@snwh.org>
Tue, 2 May 2023 13:31:12 +0000 (11:01 -0230)
- remove screenshot tooltips using a style different from other tooltips
- tone down how dark they are
- fix missing background adjustment for high contrast

Fixes #6660

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2757>

data/theme/gnome-shell-sass/_common.scss
data/theme/gnome-shell-sass/widgets/_screenshot.scss

index 953bee598b7f09d18bc78750cdb7cc5fd2960060..0648fa4d5bae0b8236f57f5670d22365f240e5a8 100644 (file)
@@ -167,6 +167,7 @@ stage {
 // tooltip
 %tooltip {
   background-color: transparentize(black, 0.1);
+  border: 1px solid transparentize($light_1, 0.9);
   color: $light_1;
 
   border-radius: 99px;
@@ -174,6 +175,7 @@ stage {
   text-align: center;
 
   @if $is_highcontrast {
+    background-color: black;
     border-color: $hc_inset_color;
   }
 }
index 039d977a358bf5d761b6b81d8dcc544876f92383..7b490f166ac2a398a7da84403f8e5cb8e9c1dce9 100644 (file)
@@ -195,10 +195,7 @@ $screenshot_ui_button_red: $error_color;
 }
 
 .screenshot-ui-tooltip {
-  color: $osd_fg_color;
-  background-color: $osd_bg_color;
-  border-radius: 99px;
-  padding: $base_padding $base_padding * 2;
+  @extend %tooltip;
   text-align: center;
   -y-offset: 24px;
 }